﻿using System;

namespace EvidenceManagement.Model
{
    /// <summary>
    /// Flag used on a property that will be mapped to a resultset data column and, or data parameter.
    /// </summary>
    [global::System.AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
        public sealed class DbColumn : System.Attribute
        {
            /// <summary>
            /// Initializes a new instance of the <see cref="DbColumn"/> class.
            /// </summary>
            public DbColumn()
            {
                MappingName = string.Empty;
                MappingParameterName = string.Empty;
            }
            /// <summary>
            /// Gets or sets the name to use when mapping to the resultset columns.
            /// </summary>
            /// <value>The restultset mapping name.</value>
            public string MappingName
            {
                get;
                set;
            }
            /// <summary>
            /// Gets or sets the name to use when mapping to a data parameter.
            /// </summary>
            /// <value>The data parameter mapping name.</value>
            public string MappingParameterName
            {
                get;
                set;
            }
        
    }
}
